<?php

use think\migration\Seeder;

class ArticleSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = [
            [
                'title' => '文章标题',
                'body' => '文章内容'
            ]
        ];
    
        $this->table('article')->insert($data)->saveData();
    
    }
}